<%= render :partial => "nav_bar" %>
<%= render :partial => "layouts/top_stories" %>

<div class="left_articles">
  <h2>Story Listing</h2>
	<p class="date">ordered by date created</p>
	<p>
  <%= link_to 'Create a new story!', new_story_path %>
  </p>
  
  <% for story in @stories %>
  <p class="index_story"><%= link_to story.title, story %>
  <BR><span class="index_summary"><%= story.summary %></span>
  <BR><span class="index_details">rating: <%= story.story_rating %> | genre:
		<% if story.typ %>
			<%= story.typ.downcase %>
		<% else %>
			prose
		<% end %>
		| created by <%= link_to story.user.login, user_path(story.user) %> on <%= 	story.created_at.strftime('%m/%d/%Y') %></span>
  </p>
  <% end %>
            
  </p>
	</div>
  <!-- story copyright -->
  <!--
	<div class="left_box">
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore.</p>
	</div>
  -->
</div>
    
<%= render :partial => "layouts/right_bar" %>